Show all descendants of object - strange behaviour

Hi I have structure like:

 

I want to show all descendants. For that purpose I use:

Object o
Object po = current 
for o in all po do {
    print o."Absolute NUmber" "\n"
}

When current object is 1171. The output is correct:

1172
1173
1174
1175

But something strange happens when the current object is 1207. Then the result is only:

1208 ?

Is that a bug? And how to show in depth all children of 1207 - 1208,1210,1211,1212 ??

 

 

 


Dinio - Mon Jan 25 05:42:41 EST 2016

Re: Show all descendants of object - strange behaviour
DOORSHAM - Mon Jan 25 08:27:30 EST 2016

Doesn't it appear to you that you got what you ask for?

Re: Show all descendants of object - strange behaviour
Dinio - Mon Jan 25 08:30:06 EST 2016

DOORSHAM - Mon Jan 25 08:27:30 EST 2016

Doesn't it appear to you that you got what you ask for?

No, I want all the children and sub-children.

Re: Show all descendants of object - strange behaviour
Mathias Mamsch - Tue Jan 26 04:49:58 EST 2016

Dinio - Mon Jan 25 08:30:06 EST 2016

No, I want all the children and sub-children.

The "all" inside the for loop will only give you ALL direct children regardless of deleted or filtered objects (whereas the 'for Object in Object do' loop will respect the current display set). You still need recursion or iteration to get a hierarchy of all descendants. Regards, Mathias